package com.hanamaki.maven;

import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.testng.annotations.AfterClass;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.Test;

public class FirefoxTestNg {

    private WebDriver driver;

    @BeforeClass
    public void setUp() {

        /* 注册浏览器打开的路径 */

        //注册本地火狐打开的位置
        System.setProperty("webdriver.gecko.driver", "C:\\Program Files\\Mozilla Firefox\\geckodriver.exe");


        driver = new FirefoxDriver();
    }

    @Test
    public void test() {

        driver.get("https://www.baidu.com");

    }

    @AfterClass
    public void close() {

    }
}
